<template>
  <el-dialog
    top="30px"
    width="800px"
    title="放款登记"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <register-edit
      :view-mode="false"
      @close="beforeClose"
      v-bind="$attrs"
      v-on="$listeners"
      @success="handleSuccess"
    ></register-edit>
  </el-dialog>
</template>

<script>
import RegisterEdit from '@/gov/views/bus/register/components/RegisterEdit'
export default {
  components: {
    RegisterEdit,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handleSuccess() {
      this.$emit('success', true)
    },
  },
}
</script>

<style lang="scss" scoped></style>
